<!DOCTYPE html>
<html lang="en">
	<head>
    	<meta name="layout" content="main_pc">
        <title>火堆工作台</title>       
        <link rel="stylesheet" href="${resource(dir: 'css', file: 'user.center.css')}" type="text/css">
    </head>
<body>

	<div class="container-fluid">

		<section class="quick-navi mb20">
			<div class="container">
				<a href="#" class="quick-link"><span>火堆工作台</span><span
					class="caret"></span></a>
				<!--a href="#" class="quick-link">联系我们</a-->
			</div>
		</section>

		<section>
			<div class="container mb50">
												
				<g:render template="navigate"   model="[status: status]"/>
				<div class="right-content" id="rightconsole">
					<div style="line-height: 25px; padding: 10px 0px 10px 0px">
					<g:form url="[resource:manage, action:'projectFeedbackManage']"
						method="post">
					搜索反馈<input type="text" name="search" placeholder="内容"  value="${search}"/>
					<input type="hidden" name="projectid" value="${projectid}"> 
					状态<select name="flag" id="maincate-select" >
                            <option value="all">全部</option>
                            <g:if test="${ flag=='true'}">
                            <option value="true" selected>显示</option>
                            </g:if>
                            <g:else>
                            <option value="true">显示</option>
                            </g:else>
                            <g:if test="${ flag=='false'}">
                            <option value="false" selected>隐藏</option>
                            </g:if>
                            <g:else>
                           <option value="false" >隐藏</option>
                            </g:else>
                            
                     </select>
					<button type="submit">确定</button>
					</g:form>
					</div>
					<div id="forDetail"></div>                 
                    <div class="data-list-box">                        
                        <ul class="cdsp-table">
                            <li class="t-head">
                                <div class="col-2">id</div>
                                <div class="col-4">项目名称</div>
                                <div class="col-4">内容</div>
                                <div class="col-4">时间</div>
                                <div class="col-4">操作</div>
                                <div class="clearboth"></div>
                            </li>
                            <g:each in="${feedbacjson}" var="${feedBack}" status="i">
                            	<li>
                                  <div class="col-2">
                                     <div class="title">${feedBack.id}</div>
                                 </div>
                                 <div class="col-4">
                                     <div class="text">${feedBack.projectName}</div>
                                 </div>
                                 <div class="col-4">
                                     <div class="text">${feedBack.text}</div>
                                 </div>
                                 <div class="col-4">
                                     <div class="text">${feedBack.date}</div>
                                 </div>
                                 <div class="col-4">
                                     <div class="text">
                                     
                                     <g:if test="${feedBack.del==true}">
	                                      <g:if test="${feedBack.show==true}">
	                                     <g:link controller="manage" action="feedbackShow" params='[feedBackid:"${feedBack.id}",show:"false"]' >隐藏</g:link>
	                                     </g:if>
	                                     <g:if test="${feedBack.show==false}">
	                                     <g:link controller="manage" action="feedbackShow" params='[feedBackid:"${feedBack.id}",show:"true"]' >显示</g:link>
	                                     </g:if>
                                     </g:if>
                                     </div>
                                 </div>
                                 <div class="clearboth"></div>
                            	</li>
                            </g:each>
                        </ul>
                    </div>
                    
                    <div class="pagea">
	                <span>共${totalCount ?: 0}条记录</span>
	                <div class="page float_r">
						<g:paginate controller="manage" action="projectFeedbackManage" params='[search:"${search}",flag:"${flag}",projectid:"${projectid}"]' total="${totalCount ?: 0}"/>
					</div>
            		</div>		            	                            
               	</div>
				
				
					
                	
			</div>
			<div class="clearboth"></div>
		</section>


	</div>


</body>
<script type="text/javascript">

</script>

</html>